package com.sikaryofficial.backend.domain.dto.req.prize;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 礼品兑换保存对象
 *
 * @author qinjinyuan
 * @date 2023-11-02
 */
@Getter
@Setter
@ToString
@ApiModel(value = "礼品兑换保存对象", description = "礼品兑换保存对象")
public class PrizeRedeemReq {
    /**
     * 奖品ID
     */
    @ApiModelProperty(value = "奖品ID")
    private Long prizeId;
    /**
     * 奖品数量,默认设置为1
     */
    @JsonIgnore
    private Integer prizeNum;
    /**
     * 我的地址ID
     */
    @ApiModelProperty(value = "我的地址ID")
    @NotNull(message = "User address is empty")
    private Long userAddressId;
}
